package com.sunfield.myglide;

import android.net.Uri;

import com.bumptech.glide.RequestManager;

import java.io.File;

/**
 * Created by wxl on 2017/2/7.
 */

public class MyRequestManager {
    RequestManager mRequestManager;

    public MyRequestManager(RequestManager mRequestManager) {
        this.mRequestManager = mRequestManager;
    }

    public MyDrawableTypeRequest load(String string){
        return new MyDrawableTypeRequest(mRequestManager.load(string));
    }
    public MyDrawableTypeRequest load(Uri uri){
        return new MyDrawableTypeRequest(mRequestManager.load(uri));
    }
    public MyDrawableTypeRequest load(File file){
        return new MyDrawableTypeRequest(mRequestManager.load(file));
    }
    public MyDrawableTypeRequest load(Integer resourceId){
        return new MyDrawableTypeRequest(mRequestManager.load(resourceId));
    }
    public MyDrawableTypeRequest load(byte[] model){
        return new MyDrawableTypeRequest(mRequestManager.load(model));
    }
    public <T> MyDrawableTypeRequest load(T model){
        return new MyDrawableTypeRequest(mRequestManager.load(model));
    }
}
